package me.xingyannian.hope.service;

import me.xingyannian.hope.entity.User;

import java.util.List;

public interface UserService {
    User getUserById(Long id);
    User create(User resources);

    void delete(List<Long> ids);

    void update(User resources);
    User saveUser(User user);

    /**
     * 检验用户名是否存在
     */
    Boolean isExist(String loginId);

    User getUserByLoginId(String loginId);

    List<User> getAllUsers();
}
